
				当前位置：
				<a href="<?php echo site_url('admin/category/add'); ?>" class="layui-btn layui-btn-sm fr">添加分类</a>
				<span class="layui-breadcrumb" lay-separator="/">
					<a href="<?php echo site_url('admin/category/index'); ?>">信息管理</a>
					<a><cite>信息分类</cite></a>
				</span>

				<fieldset class="layui-elem-field layui-field-title">
					<legend>信息分类</legend>
				</fieldset>

				<table class="layui-table">
					<thead>
						<tr>
							<th>ID</th>
							<th>分类名称</th>
							<th>级别</th>
							<th>状态</th>
							<th>菜单</th>
							<th>排序</th>
							<th>操作</th>
						</tr>
					</thead>
					<?php if (! empty($lists)): ?>
					<tbody>
						<?php foreach ($lists as $key => $value): ?>
						<tr>
							<td><?php echo $value['id']; ?></td>
							<td style="text-indent: <?php echo ($value['level'] - 1) * 2; ?>em;"><?php echo $value['name']; ?></td>
							<td style="text-indent: <?php echo ($value['level'] - 1) * 2; ?>em;"><?php echo $value['level']; ?>级</td>
							<td><?php echo empty($value['status']) ? 'Off' : 'On'; ?></td>
							<td><?php echo empty($value['nav']) ? 'No' : 'Yes'; ?></td>
							<td style="text-indent: <?php echo ($value['level'] - 1) * 2; ?>em;"><?php echo $value['sort']; ?></td>
							<td>
								<div class="layui-btn-group">
								<a title="编辑" href="<?php echo site_url('admin/category/edit/'. $value['id']); ?>" class="layui-icon layui-btn layui-btn-xs layui-icon-edit"></a>
								<a title="删除" url="<?php echo site_url('admin/category/del/'. $value['id']); ?>" class="layui-icon layui-btn layui-btn-xs layui-icon-delete layui-btn-danger del"></a>
								</div>
							</td>
						</tr>
						<?php endforeach; ?>
					</tbody>
					<?php endif; ?>
				</table>
